<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>usbpsu: xusbpsu_ch9.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">usbpsu
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xusbpsu__ch9_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xusbpsu_ch9.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
<hr/>

1.0   sg  06/06/16 First release
1.1     vak 30/11/16 updated for adding ch9 function callbacks
1.2   mn  01/20/17 fix to assign EP number and direction from wIndex field</pre><pre></pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct____attribute____.html">__attribute__</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB Standard Control Request.  <a href="struct____attribute____.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct____attribute____.html">__attribute__</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB Standard Control Request.  <a href="struct____attribute____.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Request types</div></td></tr>
<tr class="memitem:a585d6002d7fdd17d90f92abb4b71a863"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8h.html#a585d6002d7fdd17d90f92abb4b71a863">XUSBPSU_REQ_TYPE_MASK</a>&#160;&#160;&#160;0x60</td></tr>
<tr class="memdesc:a585d6002d7fdd17d90f92abb4b71a863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask for request opcode.  <a href="#a585d6002d7fdd17d90f92abb4b71a863">More...</a><br /></td></tr>
<tr class="separator:a585d6002d7fdd17d90f92abb4b71a863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7ae33e729370e27d6d74c57e8a55565"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8h.html#ac7ae33e729370e27d6d74c57e8a55565">XUSBPSU_CMD_STDREQ</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="memdesc:ac7ae33e729370e27d6d74c57e8a55565"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard Request.  <a href="#ac7ae33e729370e27d6d74c57e8a55565">More...</a><br /></td></tr>
<tr class="separator:ac7ae33e729370e27d6d74c57e8a55565"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a280f0e75ecb359f227bb17f27e53f2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8h.html#a1a280f0e75ecb359f227bb17f27e53f2">XUSBPSU_CMD_CLASSREQ</a>&#160;&#160;&#160;0x20</td></tr>
<tr class="memdesc:a1a280f0e75ecb359f227bb17f27e53f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class Request.  <a href="#a1a280f0e75ecb359f227bb17f27e53f2">More...</a><br /></td></tr>
<tr class="separator:a1a280f0e75ecb359f227bb17f27e53f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6cf057e523c45f83caef93fa02f8777"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8h.html#af6cf057e523c45f83caef93fa02f8777">XUSBPSU_CMD_VENDREQ</a>&#160;&#160;&#160;0x40</td></tr>
<tr class="memdesc:af6cf057e523c45f83caef93fa02f8777"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vendor Request.  <a href="#af6cf057e523c45f83caef93fa02f8777">More...</a><br /></td></tr>
<tr class="separator:af6cf057e523c45f83caef93fa02f8777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2503400442a35d11d40a1aa1fa8d04b7"><td class="memItemLeft" align="right" valign="top"><a id="a2503400442a35d11d40a1aa1fa8d04b7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_ENDPOINT_NUMBER_MASK</b>&#160;&#160;&#160;0x0f</td></tr>
<tr class="separator:a2503400442a35d11d40a1aa1fa8d04b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44639d9e99a9eb5272afdd9fc2ec7b61"><td class="memItemLeft" align="right" valign="top"><a id="a44639d9e99a9eb5272afdd9fc2ec7b61"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_ENDPOINT_DIR_MASK</b>&#160;&#160;&#160;0x80</td></tr>
<tr class="separator:a44639d9e99a9eb5272afdd9fc2ec7b61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42afa2f0f2e88219af617c036745886e"><td class="memItemLeft" align="right" valign="top"><a id="a42afa2f0f2e88219af617c036745886e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_ENDPOINT_XFERTYPE_MASK</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a42afa2f0f2e88219af617c036745886e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Request Values</div></td></tr>
<tr class="memitem:a9bb115deac292352768a41912d7688e3"><td class="memItemLeft" align="right" valign="top"><a id="a9bb115deac292352768a41912d7688e3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_GET_STATUS</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a9bb115deac292352768a41912d7688e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a2977edcb536c8d55310c29314ae6b"><td class="memItemLeft" align="right" valign="top"><a id="a26a2977edcb536c8d55310c29314ae6b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_CLEAR_FEATURE</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a26a2977edcb536c8d55310c29314ae6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13893a6ace2b87246f159daceb6e12e9"><td class="memItemLeft" align="right" valign="top"><a id="a13893a6ace2b87246f159daceb6e12e9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_FEATURE</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a13893a6ace2b87246f159daceb6e12e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a033188749876d8990e88bcd8331ba8a9"><td class="memItemLeft" align="right" valign="top"><a id="a033188749876d8990e88bcd8331ba8a9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_ADDRESS</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a033188749876d8990e88bcd8331ba8a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d8bb5b0af87d309591d8c052a1bef3c"><td class="memItemLeft" align="right" valign="top"><a id="a6d8bb5b0af87d309591d8c052a1bef3c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_GET_DESCRIPTOR</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:a6d8bb5b0af87d309591d8c052a1bef3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aead2c9aba4b5ee3ff23773a6250fbe8b"><td class="memItemLeft" align="right" valign="top"><a id="aead2c9aba4b5ee3ff23773a6250fbe8b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_DESCRIPTOR</b>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:aead2c9aba4b5ee3ff23773a6250fbe8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24029f26854df6a50e31437335b25a20"><td class="memItemLeft" align="right" valign="top"><a id="a24029f26854df6a50e31437335b25a20"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_GET_CONFIGURATION</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a24029f26854df6a50e31437335b25a20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c1b041067d42179fef412cd612fa3b3"><td class="memItemLeft" align="right" valign="top"><a id="a6c1b041067d42179fef412cd612fa3b3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_CONFIGURATION</b>&#160;&#160;&#160;0x09</td></tr>
<tr class="separator:a6c1b041067d42179fef412cd612fa3b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4a9169398d05139d79f8a0b96b40090"><td class="memItemLeft" align="right" valign="top"><a id="aa4a9169398d05139d79f8a0b96b40090"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_GET_INTERFACE</b>&#160;&#160;&#160;0x0a</td></tr>
<tr class="separator:aa4a9169398d05139d79f8a0b96b40090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a17fea1e2bb4f6c6eb92066af777502"><td class="memItemLeft" align="right" valign="top"><a id="a4a17fea1e2bb4f6c6eb92066af777502"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_INTERFACE</b>&#160;&#160;&#160;0x0b</td></tr>
<tr class="separator:a4a17fea1e2bb4f6c6eb92066af777502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69888f706ef13ce9abf5a06cfc7ef2ee"><td class="memItemLeft" align="right" valign="top"><a id="a69888f706ef13ce9abf5a06cfc7ef2ee"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SYNC_FRAME</b>&#160;&#160;&#160;0x0c</td></tr>
<tr class="separator:a69888f706ef13ce9abf5a06cfc7ef2ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cd51d593c26349793681616e2f40d37"><td class="memItemLeft" align="right" valign="top"><a id="a4cd51d593c26349793681616e2f40d37"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_SEL</b>&#160;&#160;&#160;0x30</td></tr>
<tr class="separator:a4cd51d593c26349793681616e2f40d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7783458619031445513dc53cbe2c586d"><td class="memItemLeft" align="right" valign="top"><a id="a7783458619031445513dc53cbe2c586d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_REQ_SET_ISOCH_DELAY</b>&#160;&#160;&#160;0x31</td></tr>
<tr class="separator:a7783458619031445513dc53cbe2c586d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Feature Selectors</div></td></tr>
<tr class="memitem:a95993de88ff06d1adc0f2b2f1d889ab0"><td class="memItemLeft" align="right" valign="top"><a id="a95993de88ff06d1adc0f2b2f1d889ab0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_ENDPOINT_HALT</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a95993de88ff06d1adc0f2b2f1d889ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3ac35eafba06acca5e89c9a1758d596"><td class="memItemLeft" align="right" valign="top"><a id="ae3ac35eafba06acca5e89c9a1758d596"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_REMOTE_WAKEUP</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:ae3ac35eafba06acca5e89c9a1758d596"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6513fa57915a5023da9ea2c88b453ced"><td class="memItemLeft" align="right" valign="top"><a id="a6513fa57915a5023da9ea2c88b453ced"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TEST_MODE</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a6513fa57915a5023da9ea2c88b453ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab54e84149ec244dd92d3a9d5fea255f2"><td class="memItemLeft" align="right" valign="top"><a id="ab54e84149ec244dd92d3a9d5fea255f2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_U1_ENABLE</b>&#160;&#160;&#160;0x30</td></tr>
<tr class="separator:ab54e84149ec244dd92d3a9d5fea255f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab801ac3bd88dff0930851adc690f1f05"><td class="memItemLeft" align="right" valign="top"><a id="ab801ac3bd88dff0930851adc690f1f05"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_U2_ENABLE</b>&#160;&#160;&#160;0x31</td></tr>
<tr class="separator:ab801ac3bd88dff0930851adc690f1f05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Descriptor Types</div></td></tr>
<tr class="memitem:a62f13d95ff7e49cfed71adeeeb134c00"><td class="memItemLeft" align="right" valign="top"><a id="a62f13d95ff7e49cfed71adeeeb134c00"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_DEVICE_DESC</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a62f13d95ff7e49cfed71adeeeb134c00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61832ebacc82589d5291bcfbb3ca2410"><td class="memItemLeft" align="right" valign="top"><a id="a61832ebacc82589d5291bcfbb3ca2410"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_CONFIG_DESC</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a61832ebacc82589d5291bcfbb3ca2410"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af04d7dba1d663fece52a38396e8040c8"><td class="memItemLeft" align="right" valign="top"><a id="af04d7dba1d663fece52a38396e8040c8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_STRING_DESC</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:af04d7dba1d663fece52a38396e8040c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77ffbc638d0b54ae25e2e72c60fa830b"><td class="memItemLeft" align="right" valign="top"><a id="a77ffbc638d0b54ae25e2e72c60fa830b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_INTERFACE_DESC</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a77ffbc638d0b54ae25e2e72c60fa830b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dcf452bd78a9a56299a9f6eb46f1452"><td class="memItemLeft" align="right" valign="top"><a id="a5dcf452bd78a9a56299a9f6eb46f1452"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_ENDPOINT_CFG_DESC</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a5dcf452bd78a9a56299a9f6eb46f1452"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b3596ecedc98b95daff191cf684d20"><td class="memItemLeft" align="right" valign="top"><a id="a34b3596ecedc98b95daff191cf684d20"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_DEVICE_QUALIFIER</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:a34b3596ecedc98b95daff191cf684d20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6263fa083d0482069bd0f9326ae6da18"><td class="memItemLeft" align="right" valign="top"><a id="a6263fa083d0482069bd0f9326ae6da18"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_BOS_DESC</b>&#160;&#160;&#160;0x0F</td></tr>
<tr class="separator:a6263fa083d0482069bd0f9326ae6da18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab449234e3bcae7eb4d54c137717f616f"><td class="memItemLeft" align="right" valign="top"><a id="ab449234e3bcae7eb4d54c137717f616f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_HID_DESC</b>&#160;&#160;&#160;0x21</td></tr>
<tr class="separator:ab449234e3bcae7eb4d54c137717f616f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa76c2a3c73bf5a4e1f8690b5bfac1ac4"><td class="memItemLeft" align="right" valign="top"><a id="aa76c2a3c73bf5a4e1f8690b5bfac1ac4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_TYPE_REPORT_DESC</b>&#160;&#160;&#160;0x22</td></tr>
<tr class="separator:aa76c2a3c73bf5a4e1f8690b5bfac1ac4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">USB Device States</div></td></tr>
<tr class="memitem:a163e87ec77482a037bfd88ebeb516983"><td class="memItemLeft" align="right" valign="top"><a id="a163e87ec77482a037bfd88ebeb516983"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_ATTACHED</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a163e87ec77482a037bfd88ebeb516983"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca444c6322a1b2e376b994633438f133"><td class="memItemLeft" align="right" valign="top"><a id="aca444c6322a1b2e376b994633438f133"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_POWERED</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:aca444c6322a1b2e376b994633438f133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06d4b548ad3a3626918d45cb6498c07d"><td class="memItemLeft" align="right" valign="top"><a id="a06d4b548ad3a3626918d45cb6498c07d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_DEFAULT</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a06d4b548ad3a3626918d45cb6498c07d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69285da1bee79a824a4485779fa3eb81"><td class="memItemLeft" align="right" valign="top"><a id="a69285da1bee79a824a4485779fa3eb81"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_ADDRESSED</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a69285da1bee79a824a4485779fa3eb81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59f414defca9fb0f227689641f524e88"><td class="memItemLeft" align="right" valign="top"><a id="a59f414defca9fb0f227689641f524e88"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_CONFIGURED</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a59f414defca9fb0f227689641f524e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80c29eb7db6bd2947ad0e904681e9f5f"><td class="memItemLeft" align="right" valign="top"><a id="a80c29eb7db6bd2947ad0e904681e9f5f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_DEVICE_SUSPENDED</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a80c29eb7db6bd2947ad0e904681e9f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Status type</div></td></tr>
<tr class="memitem:a126d9c86882449027d4ec9c1f452d9df"><td class="memItemLeft" align="right" valign="top"><a id="a126d9c86882449027d4ec9c1f452d9df"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_STATUS_MASK</b>&#160;&#160;&#160;0x3</td></tr>
<tr class="separator:a126d9c86882449027d4ec9c1f452d9df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fcafaeda02bd401933d7a84c0b00f85"><td class="memItemLeft" align="right" valign="top"><a id="a0fcafaeda02bd401933d7a84c0b00f85"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_STATUS_DEVICE</b>&#160;&#160;&#160;0x0</td></tr>
<tr class="separator:a0fcafaeda02bd401933d7a84c0b00f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a060c4570c0ebca32d0265dd79868c25a"><td class="memItemLeft" align="right" valign="top"><a id="a060c4570c0ebca32d0265dd79868c25a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_STATUS_INTERFACE</b>&#160;&#160;&#160;0x1</td></tr>
<tr class="separator:a060c4570c0ebca32d0265dd79868c25a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a060d6cb860f0619550291d0c6c6f9a43"><td class="memItemLeft" align="right" valign="top"><a id="a060d6cb860f0619550291d0c6c6f9a43"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_STATUS_ENDPOINT</b>&#160;&#160;&#160;0x2</td></tr>
<tr class="separator:a060d6cb860f0619550291d0c6c6f9a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">EP Types</div></td></tr>
<tr class="memitem:a4629f43f22c3ee834e2e60531f63b21d"><td class="memItemLeft" align="right" valign="top"><a id="a4629f43f22c3ee834e2e60531f63b21d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_EP_CONTROL</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a4629f43f22c3ee834e2e60531f63b21d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b3b5bee3b9e9f00a52cef207879b966"><td class="memItemLeft" align="right" valign="top"><a id="a7b3b5bee3b9e9f00a52cef207879b966"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_EP_ISOCHRONOUS</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a7b3b5bee3b9e9f00a52cef207879b966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08dfed4f35e91a8a378a3871a1a1fc83"><td class="memItemLeft" align="right" valign="top"><a id="a08dfed4f35e91a8a378a3871a1a1fc83"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_EP_BULK</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a08dfed4f35e91a8a378a3871a1a1fc83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7210a863d0bd9530320f7fd20fcaf99b"><td class="memItemLeft" align="right" valign="top"><a id="a7210a863d0bd9530320f7fd20fcaf99b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_EP_INTERRUPT</b>&#160;&#160;&#160;3</td></tr>
<tr class="separator:a7210a863d0bd9530320f7fd20fcaf99b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Device Classes</div></td></tr>
<tr class="memitem:ac7cf7f8919b79665deb17b0da9fef580"><td class="memItemLeft" align="right" valign="top"><a id="ac7cf7f8919b79665deb17b0da9fef580"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_CLASS_HID</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:ac7cf7f8919b79665deb17b0da9fef580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13029a31acfd89ca6966145df0991bac"><td class="memItemLeft" align="right" valign="top"><a id="a13029a31acfd89ca6966145df0991bac"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_CLASS_STORAGE</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a13029a31acfd89ca6966145df0991bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf84b061d013b36a210c2426f15ff2e5"><td class="memItemLeft" align="right" valign="top"><a id="adf84b061d013b36a210c2426f15ff2e5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPSU_CLASS_VENDOR</b>&#160;&#160;&#160;0xFF</td></tr>
<tr class="separator:adf84b061d013b36a210c2426f15ff2e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a42957fc7142facc624489177e502a6a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbpsu__ch9_8h.html#a42957fc7142facc624489177e502a6a2">XUsbPsu_Ch9Handler</a> (struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a42957fc7142facc624489177e502a6a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles a Setup Data packet from the host.  <a href="#a42957fc7142facc624489177e502a6a2">More...</a><br /></td></tr>
<tr class="separator:a42957fc7142facc624489177e502a6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a1a280f0e75ecb359f227bb17f27e53f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a280f0e75ecb359f227bb17f27e53f2">&#9670;&nbsp;</a></span>XUSBPSU_CMD_CLASSREQ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPSU_CMD_CLASSREQ&#160;&#160;&#160;0x20</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Class Request. </p>

</div>
</div>
<a id="ac7ae33e729370e27d6d74c57e8a55565"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7ae33e729370e27d6d74c57e8a55565">&#9670;&nbsp;</a></span>XUSBPSU_CMD_STDREQ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPSU_CMD_STDREQ&#160;&#160;&#160;0x00</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Standard Request. </p>

</div>
</div>
<a id="af6cf057e523c45f83caef93fa02f8777"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6cf057e523c45f83caef93fa02f8777">&#9670;&nbsp;</a></span>XUSBPSU_CMD_VENDREQ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPSU_CMD_VENDREQ&#160;&#160;&#160;0x40</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Vendor Request. </p>

</div>
</div>
<a id="a585d6002d7fdd17d90f92abb4b71a863"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a585d6002d7fdd17d90f92abb4b71a863">&#9670;&nbsp;</a></span>XUSBPSU_REQ_TYPE_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPSU_REQ_TYPE_MASK&#160;&#160;&#160;0x60</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask for request opcode. </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a42957fc7142facc624489177e502a6a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42957fc7142facc624489177e502a6a2">&#9670;&nbsp;</a></span>XUsbPsu_Ch9Handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XUsbPsu_Ch9Handler </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_x_usb_psu.html">XUsbPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles a Setup Data packet from the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_x_usb_psu.html" title="USB Device Controller representation. ">XUsbPsu</a> instance of the controller. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is the structure containing the setup request.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if the function is successful.</li>
<li>XST_FAILURE if an Error occured.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
